home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 12 / BBS in a box XII-1.iso / Files / Tele / C / Comet2.1.3.sit / 3270XCMD / TNdrvr.c < prev    next >
MacBinary  |  1990-03-22  |  3.5 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Thu Mar 22 15:33:41 1990, modified Thu Mar 22 15:33:41 1990, creator 'MPS ', type ASCII, 3025 bytes "TNdrvr.c" , at 0xc51 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 54 4e 64 72 76 72 | 2e 63 00 00 00 00 00 00 |..TNdrvr|.c......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 0b d1 00 | 00 01 7e a2 2e e7 25 a2 |........|..~...%.|
|00000060| 2e e7 25 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..%.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 95 6e 00 00 |........|.....n..|
|00000080| 2f 2a 20 54 4e 64 72 76 | 72 2e 63 20 2d 2d 20 43 |/* TNdrv|r.c -- C|
|00000090| 6f 70 79 72 69 67 68 74 | 20 31 39 38 39 20 43 6f |opyright| 1989 Co|
|000000a0| 72 6e 65 6c 6c 20 55 6e | 69 76 65 72 73 69 74 79 |rnell Un|iversity|
|000000b0| 20 2a 2f 0d 0d 23 69 6e | 63 6c 75 64 65 20 3c 4d | */..#in|clude <M|
|000000c0| 65 6d 6f 72 79 2e 68 3e | 0d 23 69 6e 63 6c 75 64 |emory.h>|.#includ|
|000000d0| 65 20 3c 54 79 70 65 73 | 2e 68 3e 0d 23 69 6e 63 |e <Types|.h>.#inc|
|000000e0| 6c 75 64 65 20 3c 44 65 | 76 69 63 65 73 2e 68 3e |lude <De|vices.h>|
|000000f0| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 44 65 73 6b 2e |.#includ|e <Desk.|
|00000100| 68 3e 0d 0d 23 69 6e 63 | 6c 75 64 65 20 22 54 4e |h>..#inc|lude "TN|
|00000110| 64 72 76 72 2e 68 22 0d | 0d 70 61 73 63 61 6c 20 |drvr.h".|.pascal |
|00000120| 76 6f 69 64 20 64 65 62 | 75 67 67 65 72 28 29 09 |void deb|ugger().|
|00000130| 65 78 74 65 72 6e 20 30 | 78 41 39 46 46 3b 20 20 |extern 0|xA9FF; |
|00000140| 20 0d 0d 70 61 73 63 61 | 6c 20 4f 53 45 72 72 20 | ..pasca|l OSErr |
|00000150| 44 52 56 52 4f 70 65 6e | 28 63 74 6c 70 62 2c 20 |DRVROpen|(ctlpb, |
|00000160| 64 63 74 6c 29 0d 43 6e | 74 72 6c 50 61 72 61 6d |dctl).Cn|trlParam|
|00000170| 20 2a 20 63 74 6c 70 62 | 3b 0d 44 43 74 6c 50 74 | * ctlpb|;.DCtlPt|
|00000180| 72 20 64 63 74 6c 3b 0d | 7b 0d 09 73 74 72 75 63 |r dctl;.|{..struc|
|00000190| 74 20 73 74 6f 72 61 67 | 65 20 2a 20 73 74 6f 72 |t storag|e * stor|
|000001a0| 65 3b 0d 0d 09 69 66 20 | 28 64 63 74 6c 2d 3e 64 |e;...if |(dctl->d|
|000001b0| 43 74 6c 53 74 6f 72 61 | 67 65 20 21 3d 20 30 4c |CtlStora|ge != 0L|
|000001c0| 29 0d 09 09 2f 2a 20 6a | 75 73 74 20 72 65 74 75 |).../* j|ust retu|
|000001d0| 72 6e 2c 20 77 65 27 76 | 65 20 61 6c 72 65 61 64 |rn, we'v|e alread|
|000001e0| 79 20 62 65 65 6e 20 6f | 70 65 6e 65 64 20 2a 2f |y been o|pened */|
|000001f0| 0d 09 09 72 65 74 75 72 | 6e 28 30 29 3b 0d 09 0d |...retur|n(0);...|
|00000200| 09 53 65 74 5a 6f 6e 65 | 28 53 79 73 74 65 6d 5a |.SetZone|(SystemZ|
|00000210| 6f 6e 65 28 29 29 3b 0d | 09 64 63 74 6c 2d 3e 64 |one());.|.dctl->d|
|00000220| 43 74 6c 53 74 6f 72 61 | 67 65 20 3d 20 4e 65 77 |CtlStora|ge = New|
|00000230| 48 61 6e 64 6c 65 28 28 | 6c 6f 6e 67 29 28 73 69 |Handle((|long)(si|
|00000240| 7a 65 6f 66 28 73 74 72 | 75 63 74 20 73 74 6f 72 |zeof(str|uct stor|
|00000250| 61 67 65 29 29 29 3b 0d | 09 53 65 74 5a 6f 6e 65 |age)));.|.SetZone|
|00000260| 28 41 70 70 6c 69 63 5a | 6f 6e 65 28 29 29 3b 0d |(ApplicZ|one());.|
|00000270| 09 73 74 6f 72 65 20 3d | 20 28 73 74 72 75 63 74 |.store =| (struct|
|00000280| 20 73 74 6f 72 61 67 65 | 20 2a 29 20 2a 20 64 63 | storage| *) * dc|
|00000290| 74 6c 2d 3e 64 43 74 6c | 53 74 6f 72 61 67 65 3b |tl->dCtl|Storage;|
|000002a0| 0d 09 69 66 20 28 73 74 | 6f 72 65 20 3d 3d 20 30 |..if (st|ore == 0|
|000002b0| 4c 29 0d 09 09 72 65 74 | 75 72 6e 28 2d 31 29 3b |L)...ret|urn(-1);|
|000002c0| 0d 0d 09 73 74 6f 72 65 | 2d 3e 74 6e 6f 70 65 6e |...store|->tnopen|
|000002d0| 20 3d 20 30 4c 3b 0d 0d | 09 72 65 74 75 72 6e 28 | = 0L;..|.return(|
|000002e0| 30 29 3b 0d 7d 0d 20 0d | 0d 70 61 73 63 61 6c 20 |0);.}. .|.pascal |
|000002f0| 4f 53 45 72 72 20 44 52 | 56 52 43 6f 6e 74 72 6f |OSErr DR|VRContro|
|00000300| 6c 28 63 74 6c 70 62 2c | 20 64 63 74 6c 29 0d 43 |l(ctlpb,| dctl).C|
|00000310| 6e 74 72 6c 50 61 72 61 | 6d 20 2a 20 63 74 6c 70 |ntrlPara|m * ctlp|
|00000320| 62 3b 0d 44 43 74 6c 50 | 74 72 20 64 63 74 6c 3b |b;.DCtlP|tr dctl;|
|00000330| 0d 7b 0d 09 6c 6f 6e 67 | 20 2a 20 61 72 67 73 3b |.{..long| * args;|
|00000340| 0d 20 09 73 74 72 75 63 | 74 20 73 74 6f 72 61 67 |. .struc|t storag|
|00000350| 65 20 2a 20 73 74 6f 72 | 65 3b 0d 20 09 73 74 72 |e * stor|e;. .str|
|00000360| 75 63 74 20 73 74 6f 72 | 61 67 65 20 2a 20 74 6e |uct stor|age * tn|
|00000370| 61 72 67 73 3b 0d 09 63 | 68 61 72 20 2a 20 74 6d |args;..c|har * tm|
|00000380| 70 70 3b 0d 09 4f 53 45 | 72 72 20 72 65 74 76 61 |pp;..OSE|rr retva|
|00000390| 6c 3b 0d 09 4f 53 45 72 | 72 20 28 2a 63 66 75 6e |l;..OSEr|r (*cfun|
|000003a0| 63 29 28 29 3b 20 0d 09 | 09 2f 2a 20 4d 50 57 20 |c)(); ..|./* MPW |
|000003b0| 43 20 63 61 6c 6c 73 20 | 28 2a 73 74 6f 72 65 2d |C calls |(*store-|
|000003c0| 3e 63 66 75 6e 63 29 28 | 29 20 61 6e 20 22 69 6c |>cfunc)(|) an "il|
|000003d0| 6c 65 67 61 6c 20 66 75 | 6e 63 74 69 6f 6e 22 2c |legal fu|nction",|
|000003e0| 0d 09 09 09 63 68 6f 6b | 65 73 20 6f 6e 20 61 72 |....chok|es on ar|
|000003f0| 67 73 20 69 66 20 70 61 | 73 63 61 6c 20 28 2a 70 |gs if pa|scal (*p|
|00000400| 66 75 6e 63 29 28 29 20 | 2a 2f 0d 09 0d 09 72 65 |func)() |*/....re|
|00000410| 74 76 61 6c 20 3d 20 30 | 3b 0d 09 48 4c 6f 63 6b |tval = 0|;..HLock|
|00000420| 28 64 63 74 6c 2d 3e 64 | 43 74 6c 53 74 6f 72 61 |(dctl->d|CtlStora|
|00000430| 67 65 29 3b 0d 09 73 74 | 6f 72 65 20 3d 20 28 73 |ge);..st|ore = (s|
|00000440| 74 72 75 63 74 20 73 74 | 6f 72 61 67 65 20 2a 29 |truct st|orage *)|
|00000450| 20 2a 64 63 74 6c 2d 3e | 64 43 74 6c 53 74 6f 72 | *dctl->|dCtlStor|
|00000460| 61 67 65 3b 0d 09 61 72 | 67 73 20 3d 20 28 6c 6f |age;..ar|gs = (lo|
|00000470| 6e 67 20 2a 29 20 26 63 | 74 6c 70 62 2d 3e 63 73 |ng *) &c|tlpb->cs|
|00000480| 50 61 72 61 6d 5b 30 5d | 3b 0d 09 0d 09 69 66 20 |Param[0]|;....if |
|00000490| 28 63 74 6c 70 62 2d 3e | 63 73 43 6f 64 65 20 3d |(ctlpb->|csCode =|
|000004a0| 3d 20 48 54 4e 5f 49 4e | 49 54 29 20 7b 0d 09 09 |= HTN_IN|IT) {...|
|000004b0| 2f 2a 20 73 61 76 65 20 | 33 32 37 30 20 76 65 63 |/* save |3270 vec|
|000004c0| 74 6f 72 73 20 2a 2f 0d | 0d 09 09 74 6e 61 72 67 |tors */.|...tnarg|
|000004d0| 73 20 3d 20 28 73 74 72 | 75 63 74 20 73 74 6f 72 |s = (str|uct stor|
|000004e0| 61 67 65 20 2a 29 20 28 | 2a 20 28 28 6c 6f 6e 67 |age *) (|* ((long|
|000004f0| 20 2a 29 20 26 63 74 6c | 70 62 2d 3e 63 73 50 61 | *) &ctl|pb->csPa|
|00000500| 72 61 6d 5b 30 5d 29 29 | 3b 0d 09 09 09 2f 2a 20 |ram[0]))|;..../* |
|00000510| 66 69 72 73 74 20 6c 6f | 6e 67 20 6f 66 20 70 61 |first lo|ng of pa|
|00000520| 72 61 6d 65 74 65 72 73 | 20 70 6f 69 6e 74 73 20 |rameters| points |
|00000530| 74 6f 20 61 72 72 61 79 | 20 6f 66 20 76 65 63 74 |to array| of vect|
|00000540| 6f 72 73 2f 70 6f 69 6e | 74 65 72 73 2a 2f 0d 09 |ors/poin|ters*/..|
|00000550| 09 2a 73 74 6f 72 65 20 | 3d 20 2a 74 6e 61 72 67 |.*store |= *tnarg|
|00000560| 73 3b 0d 09 7d 0d 09 65 | 6c 73 65 20 69 66 20 28 |s;..}..e|lse if (|
|00000570| 73 74 6f 72 65 2d 3e 74 | 6e 6f 70 65 6e 20 3d 3d |store->t|nopen ==|
|00000580| 20 28 76 6f 69 64 20 28 | 2a 29 28 29 29 20 30 4c | (void (|*)()) 0L|
|00000590| 29 20 7b 0d 09 09 2f 2a | 20 6e 6f 20 67 6f 2c 20 |) {.../*| no go, |
|000005a0| 54 4e 33 32 37 30 20 68 | 61 73 20 6e 6f 74 20 72 |TN3270 h|as not r|
|000005b0| 65 67 69 73 74 65 72 65 | 64 20 72 6f 75 74 69 6e |egistere|d routin|
|000005c0| 65 73 20 2a 2f 0d 09 09 | 48 55 6e 6c 6f 63 6b 28 |es */...|HUnlock(|
|000005d0| 64 63 74 6c 2d 3e 64 43 | 74 6c 53 74 6f 72 61 67 |dctl->dC|tlStorag|
|000005e0| 65 29 3b 0d 09 09 72 65 | 74 75 72 6e 28 48 54 4e |e);...re|turn(HTN|
|000005f0| 52 5f 4e 4f 54 4e 29 3b | 0d 09 7d 0d 09 0d 09 69 |R_NOTN);|..}....i|
|00000600| 66 20 28 63 74 6c 70 62 | 2d 3e 63 73 43 6f 64 65 |f (ctlpb|->csCode|
|00000610| 20 3d 3d 20 48 54 4e 5f | 53 54 41 54 55 53 29 20 | == HTN_|STATUS) |
|00000620| 7b 0d 09 09 63 66 75 6e | 63 20 3d 20 73 74 6f 72 |{...cfun|c = stor|
|00000630| 65 2d 3e 74 6e 73 74 61 | 74 75 73 3b 0d 09 09 72 |e->tnsta|tus;...r|
|00000640| 65 74 76 61 6c 20 3d 20 | 28 2a 63 66 75 6e 63 29 |etval = |(*cfunc)|
|00000650| 28 61 72 67 73 29 3b 0d | 09 09 2f 2a 20 63 61 6c |(args);.|../* cal|
|00000660| 6c 65 64 20 66 75 6e 63 | 74 69 6f 6e 20 66 69 6c |led func|tion fil|
|00000670| 6c 73 20 69 6e 20 66 69 | 72 73 74 20 6c 6f 6e 67 |ls in fi|rst long|
|00000680| 20 69 6e 20 63 73 50 61 | 72 61 6d 2c 20 2d 3e 20 | in csPa|ram, -> |
|00000690| 73 63 72 65 65 6e 20 62 | 75 66 66 65 72 20 2a 2f |screen b|uffer */|
|000006a0| 0d 09 7d 0d 09 65 6c 73 | 65 20 69 66 20 28 63 74 |..}..els|e if (ct|
|000006b0| 6c 70 62 2d 3e 63 73 43 | 6f 64 65 20 3d 3d 20 48 |lpb->csC|ode == H|
|000006c0| 54 4e 5f 53 45 4e 44 53 | 54 52 29 20 7b 0d 09 09 |TN_SENDS|TR) {...|
|000006d0| 63 66 75 6e 63 20 3d 20 | 73 74 6f 72 65 2d 3e 74 |cfunc = |store->t|
|000006e0| 6e 73 65 6e 64 73 74 72 | 3b 0d 09 09 72 65 74 76 |nsendstr|;...retv|
|000006f0| 61 6c 20 3d 20 28 2a 63 | 66 75 6e 63 29 28 2a 61 |al = (*c|func)(*a|
|00000700| 72 67 73 29 3b 0d 09 7d | 0d 09 65 6c 73 65 20 69 |rgs);..}|..else i|
|00000710| 66 20 28 63 74 6c 70 62 | 2d 3e 63 73 43 6f 64 65 |f (ctlpb|->csCode|
|00000720| 20 3d 3d 20 48 54 4e 5f | 53 45 4e 44 43 4d 44 29 | == HTN_|SENDCMD)|
|00000730| 20 7b 0d 09 09 63 66 75 | 6e 63 20 3d 20 73 74 6f | {...cfu|nc = sto|
|00000740| 72 65 2d 3e 74 6e 73 65 | 6e 64 63 6d 64 3b 0d 09 |re->tnse|ndcmd;..|
|00000750| 09 72 65 74 76 61 6c 20 | 3d 20 28 2a 63 66 75 6e |.retval |= (*cfun|
|00000760| 63 29 28 2a 61 72 67 73 | 2c 20 2a 28 61 72 67 73 |c)(*args|, *(args|
|00000770| 2b 31 29 29 3b 0d 09 7d | 0d 09 65 6c 73 65 20 69 |+1));..}|..else i|
|00000780| 66 20 28 63 74 6c 70 62 | 2d 3e 63 73 43 6f 64 65 |f (ctlpb|->csCode|
|00000790| 20 3d 3d 20 48 54 4e 5f | 43 4f 4e 4e 45 43 54 29 | == HTN_|CONNECT)|
|000007a0| 20 7b 0d 09 09 63 66 75 | 6e 63 20 3d 20 73 74 6f | {...cfu|nc = sto|
|000007b0| 72 65 2d 3e 74 6e 63 6f | 6e 6e 65 63 74 3b 0d 09 |re->tnco|nnect;..|
|000007c0| 09 72 65 74 76 61 6c 20 | 3d 20 28 2a 63 66 75 6e |.retval |= (*cfun|
|000007d0| 63 29 28 2a 61 72 67 73 | 29 3b 0d 09 7d 0d 09 65 |c)(*args|);..}..e|
|000007e0| 6c 73 65 20 69 66 20 28 | 63 74 6c 70 62 2d 3e 63 |lse if (|ctlpb->c|
|000007f0| 73 43 6f 64 65 20 3d 3d | 20 48 54 4e 5f 43 4c 4f |sCode ==| HTN_CLO|
|00000800| 53 45 29 20 7b 0d 09 09 | 63 66 75 6e 63 20 3d 20 |SE) {...|cfunc = |
|00000810| 73 74 6f 72 65 2d 3e 74 | 6e 63 6c 6f 73 65 3b 0d |store->t|nclose;.|
|00000820| 09 09 72 65 74 76 61 6c | 20 3d 20 28 2a 63 66 75 |..retval| = (*cfu|
|00000830| 6e 63 29 28 29 3b 0d 09 | 7d 0d 09 65 6c 73 65 20 |nc)();..|}..else |
|00000840| 69 66 20 28 63 74 6c 70 | 62 2d 3e 63 73 43 6f 64 |if (ctlp|b->csCod|
|00000850| 65 20 3d 3d 20 48 54 4e | 5f 51 55 49 54 29 20 7b |e == HTN|_QUIT) {|
|00000860| 0d 09 09 63 66 75 6e 63 | 20 3d 20 73 74 6f 72 65 |...cfunc| = store|
|00000870| 2d 3e 74 6e 71 75 69 74 | 3b 0d 09 09 72 65 74 76 |->tnquit|;...retv|
|00000880| 61 6c 20 3d 20 28 2a 63 | 66 75 6e 63 29 28 29 3b |al = (*c|func)();|
|00000890| 0d 09 7d 0d 09 65 6c 73 | 65 20 69 66 20 28 63 74 |..}..els|e if (ct|
|000008a0| 6c 70 62 2d 3e 63 73 43 | 6f 64 65 20 3d 3d 20 48 |lpb->csC|ode == H|
|000008b0| 54 4e 5f 43 55 52 53 4f | 52 29 20 7b 0d 09 09 63 |TN_CURSO|R) {...c|
|000008c0| 66 75 6e 63 20 3d 20 73 | 74 6f 72 65 2d 3e 74 6e |func = s|tore->tn|
|000008d0| 63 75 72 73 6f 72 3b 0d | 09 09 72 65 74 76 61 6c |cursor;.|..retval|
|000008e0| 20 3d 20 28 2a 63 66 75 | 6e 63 29 28 61 72 67 73 | = (*cfu|nc)(args|
|000008f0| 29 3b 0d 09 09 2f 2a 20 | 63 61 6c 6c 65 64 20 66 |);.../* |called f|
|00000900| 75 6e 63 74 69 6f 6e 20 | 72 65 74 75 72 6e 73 20 |unction |returns |
|00000910| 63 75 72 73 6f 72 20 70 | 6f 73 20 69 6e 20 66 69 |cursor p|os in fi|
|00000920| 72 73 74 20 6c 6f 6e 67 | 20 69 6e 20 63 73 50 61 |rst long| in csPa|
|00000930| 72 61 6d 20 2a 2f 0d 09 | 7d 0d 09 65 6c 73 65 20 |ram */..|}..else |
|00000940| 69 66 20 28 63 74 6c 70 | 62 2d 3e 63 73 43 6f 64 |if (ctlp|b->csCod|
|00000950| 65 20 3d 3d 20 48 54 4e | 5f 44 52 41 57 29 20 7b |e == HTN|_DRAW) {|
|00000960| 0d 09 09 63 66 75 6e 63 | 20 3d 20 73 74 6f 72 65 |...cfunc| = store|
|00000970| 2d 3e 74 6e 64 72 61 77 | 3b 0d 09 09 72 65 74 76 |->tndraw|;...retv|
|00000980| 61 6c 20 3d 20 28 2a 63 | 66 75 6e 63 29 28 2a 61 |al = (*c|func)(*a|
|00000990| 72 67 73 29 3b 0d 09 7d | 0d 09 65 6c 73 65 20 69 |rgs);..}|..else i|
|000009a0| 66 20 28 63 74 6c 70 62 | 2d 3e 63 73 43 6f 64 65 |f (ctlpb|->csCode|
|000009b0| 20 3d 3d 20 48 54 4e 5f | 4f 50 45 4e 29 20 7b 0d | == HTN_|OPEN) {.|
|000009c0| 09 09 63 66 75 6e 63 20 | 3d 20 73 74 6f 72 65 2d |..cfunc |= store-|
|000009d0| 3e 74 6e 6f 70 65 6e 3b | 0d 09 09 72 65 74 76 61 |>tnopen;|...retva|
|000009e0| 6c 20 3d 20 28 2a 63 66 | 75 6e 63 29 28 29 3b 09 |l = (*cf|unc)();.|
|000009f0| 09 09 09 09 2f 2a 20 6f | 70 65 6e 20 54 4e 20 75 |..../* o|pen TN u|
|00000a00| 70 20 2a 2f 0d 09 09 2a | 61 72 67 73 20 3d 20 28 |p */...*|args = (|
|00000a10| 6c 6f 6e 67 29 20 73 74 | 6f 72 65 2d 3e 74 6e 73 |long) st|ore->tns|
|00000a20| 63 72 65 65 6e 3b 09 09 | 09 2f 2a 20 72 65 74 75 |creen;..|./* retu|
|00000a30| 72 6e 20 33 32 37 30 20 | 62 75 66 66 65 72 20 70 |rn 3270 |buffer p|
|00000a40| 74 72 20 2a 2f 0d 09 09 | 2a 2b 2b 61 72 67 73 20 |tr */...|*++args |
|00000a50| 3d 20 28 6c 6f 6e 67 29 | 20 73 74 6f 72 65 2d 3e |= (long)| store->|
|00000a60| 74 6e 63 75 72 73 6f 72 | 3b 09 09 2f 2a 20 72 65 |tncursor|;../* re|
|00000a70| 74 75 72 6e 20 33 32 37 | 30 20 63 75 72 73 6f 72 |turn 327|0 cursor|
|00000a80| 20 70 74 72 20 2a 2f 0d | 09 09 2a 2b 2b 61 72 67 | ptr */.|..*++arg|
|00000a90| 73 20 3d 20 28 6c 6f 6e | 67 29 20 73 74 6f 72 65 |s = (lon|g) store|
|00000aa0| 2d 3e 74 6e 66 69 65 6c | 64 3b 09 09 2f 2a 20 72 |->tnfiel|d;../* r|
|00000ab0| 65 74 75 72 6e 20 33 32 | 37 30 20 66 69 65 6c 64 |eturn 32|70 field|
|00000ac0| 20 70 74 72 20 2a 2f 0d | 09 7d 0d 09 48 55 6e 6c | ptr */.|.}..HUnl|
|00000ad0| 6f 63 6b 28 64 63 74 6c | 2d 3e 64 43 74 6c 53 74 |ock(dctl|->dCtlSt|
|00000ae0| 6f 72 61 67 65 29 3b 0d | 09 72 65 74 75 72 6e 28 |orage);.|.return(|
|00000af0| 72 65 74 76 61 6c 29 3b | 0d 7d 0d 0d 0d 0d 70 61 |retval);|.}....pa|
|00000b00| 73 63 61 6c 20 4f 53 45 | 72 72 20 44 52 56 52 43 |scal OSE|rr DRVRC|
|00000b10| 6c 6f 73 65 28 63 74 6c | 70 62 2c 20 64 63 74 6c |lose(ctl|pb, dctl|
|00000b20| 29 0d 43 6e 74 72 6c 50 | 61 72 61 6d 20 2a 20 63 |).CntrlP|aram * c|
|00000b30| 74 6c 70 62 3b 0d 44 43 | 74 6c 50 74 72 20 64 63 |tlpb;.DC|tlPtr dc|
|00000b40| 74 6c 3b 0d 7b 0d 09 44 | 69 73 70 6f 73 48 61 6e |tl;.{..D|isposHan|
|00000b50| 64 6c 65 28 64 63 74 6c | 2d 3e 64 43 74 6c 53 74 |dle(dctl|->dCtlSt|
|00000b60| 6f 72 61 67 65 29 3b 0d | 09 72 65 74 75 72 6e 28 |orage);.|.return(|
|00000b70| 30 29 3b 0d 7d 0d 0d 0d | 70 61 73 63 61 6c 20 4f |0);.}...|pascal O|
|00000b80| 53 45 72 72 20 44 52 56 | 52 50 72 69 6d 65 28 63 |SErr DRV|RPrime(c|
|00000b90| 74 6c 70 62 2c 20 64 63 | 74 6c 29 0d 43 6e 74 72 |tlpb, dc|tl).Cntr|
|00000ba0| 6c 50 61 72 61 6d 20 2a | 20 63 74 6c 70 62 3b 0d |lParam *| ctlpb;.|
|00000bb0| 44 43 74 6c 50 74 72 20 | 64 63 74 6c 3b 0d 7b 0d |DCtlPtr |dctl;.{.|
|00000bc0| 09 2f 2a 20 6e 65 76 65 | 72 20 63 61 6c 6c 65 64 |./* neve|r called|
|00000bd0| 20 2a 2f 0d 09 72 65 74 | 75 72 6e 28 30 29 3b 0d | */..ret|urn(0);.|
|00000be0| 7d 0d 0d 0d 70 61 73 63 | 61 6c 20 4f 53 45 72 72 |}...pasc|al OSErr|
|00000bf0| 20 44 52 56 52 53 74 61 | 74 75 73 28 63 74 6c 70 | DRVRSta|tus(ctlp|
|00000c00| 62 2c 20 64 63 74 6c 29 | 0d 43 6e 74 72 6c 50 61 |b, dctl)|.CntrlPa|
|00000c10| 72 61 6d 20 2a 20 63 74 | 6c 70 62 3b 0d 44 43 74 |ram * ct|lpb;.DCt|
|00000c20| 6c 50 74 72 20 64 63 74 | 6c 3b 0d 7b 0d 09 2f 2a |lPtr dct|l;.{../*|
|00000c30| 20 6e 65 76 65 72 20 63 | 61 6c 6c 65 64 20 2a 2f | never c|alled */|
|00000c40| 0d 09 72 65 74 75 72 6e | 28 30 29 3b 0d 7d 0d 0d |..return|(0);.}..|
|00000c50| 0d 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c80| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000c90| 00 00 23 3c 05 50 72 69 | 6e 74 02 00 00 00 4d 50 |..#<.Pri|nt....MP|
|00000ca0| 53 54 4d 50 53 20 01 00 | 00 80 00 00 00 00 00 00 |STMPS ..|........|
|00000cb0| 08 54 4e 64 72 76 72 2e | 63 00 02 00 00 00 50 61 |.TNdrvr.|c.....Pa|
|00000cc0| 72 74 53 49 54 78 00 00 | 00 00 00 00 00 00 00 01 |rtSITx..|........|
|00000cd0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 a9 8d 3a 89 00 00 | 00 00 00 00 01 7e 00 00 |....:...|.....~..|
|00000d00| 0f 00 00 00 23 3c 09 50 | 72 6f 63 4e 61 6d 65 73 |....#<.P|rocNames|
|00000d10| 02 00 00 00 4d 50 53 54 | 4d 50 53 20 01 00 01 00 |....MPST|MPS ....|
|00000d20| 00 80 01 70 00 00 23 57 | 00 00 00 00 00 00 00 00 |...p..#W|........|
|00000d30| 00 00 00 00 00 00 8c 63 | 00 00 90 00 9d 27 b6 c0 |.......c|.....'..|
|00000d40| 9d 27 b6 c0 00 00 00 00 | 00 00 00 00 00 00 00 00 |.'......|........|
|00000d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d60| 00 00 00 00 00 00 94 42 | 00 24 00 00 00 00 00 00 |.......B|.$......|
|00000d70| 00 00 00 00 00 00 0c 00 | 00 00 23 3c 06 72 65 61 |........|..#<.rea|
|00000d80| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 72 69 6d |...H..Mo|naco.rim|
|00000d90| 65 28 63 74 6c 70 62 2c | 20 64 63 74 6c 29 0d 43 |e(ctlpb,| dctl).C|
|00000da0| 6e 74 72 6c 70 61 00 06 | 00 04 00 28 00 02 01 84 |ntrlpa..|...(....|
|00000db0| 02 02 00 28 00 02 01 84 | 02 02 a2 2e a0 d5 00 00 |...(....|........|
|00000dc0| 03 03 00 00 03 03 00 00 | 00 00 01 00 00 00 01 00 |........|........|
|00000dd0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 33 4e 14 |...L...L|...2.3N.|
|00000de0| 05 84 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00000df0| 00 0a 03 ed ff ff 00 00 | 00 00 00 34 87 64 00 00 |........|...4.d..|
+--------+-------------------------+-------------------------+--------+--------+